//
//  UseShopCell.m
//  OrderSeat
//
//  Created by 王威 on 13-11-27.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import "UseShopCell.h"

@implementation UseShopCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setContent:(NSDictionary*)dic
{
    self.dictionary = dic;
    _shopNameLabel.text = [dic objectForKey:@"dname"];
    _addressLabel.text = [dic objectForKey:@"dz"];
}


- (IBAction)orderAction:(id)sender
{
    NSString *shopId = [_dictionary objectForKey:@"did"];
    if (_delegate) {
        [_delegate orderAction:shopId];
    }
}

@end
